﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AllNews.aspx.cs" Inherits="News_AllNews" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  <%--  <asp:UpdatePanel ID="udt1" runat="server">
        <ContentTemplate>--%>
            <asp:Panel ID="pnmanager" runat="server">
                 <div class="row-fluid">
                    <div class="span12">
                        <div class="box" style="border:1px solid #B6D1F2;" >
                            <div class="box-title">
                                <h3><i class="icon-file"></i>Tin tức - Thông báo</h3>
                            </div>
                            <div class="box-content">
                                <div id="dvScreenWidth" visible="false"></div> <!--Thanh cuon ngang-->
                                <div class="GridDock" id="dvGridWidth"> <!--Thanh cuon ngang-->
                                    <asp:GridView ID="grid_news" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 0px" DataKeyNames="ID" PageSize="20" OnRowDataBound="grid_news_RowDataBound">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="Tiêu đề">
                                                <ItemTemplate>
                                                    <%#Eval("Title") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Người đăng">
                                                <ItemTemplate>
                                                    <%#Eval("NguoiDang") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Ngày đăng">
                                                <ItemTemplate>
                                                    <%#Eval("NgayDang") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Loại tin">
                                                <ItemTemplate>
                                                    them nut loai tin vao day
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center"/>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Chi tiết">
                                                <ItemTemplate>
                                                    <a href="<%#PageURL.local+"News/NewsDetail.aspx?id="+_ps.Encrypt("2", "gold", 128) + "&subid=" + _ps.Encrypt("3", "gold", 128)+"&newsid="+_ps.Encrypt(Eval("ID").ToString(),"gold",128) %>"><i class="icon-file-text-alt">&nbsp;&nbsp;Chi tiết</i></a>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center"/>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Loai" Visible="False"> <%--them cho nay de lay cac gia tri trang thai--%>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblloai" runat="server" Text=' <%#Eval("Loai") %>'></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <EditRowStyle BackColor="#2461BF" />
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EFF3FB" />
                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                    </asp:GridView>
                                </div>
                                <div class="" style="float:right;display:inline-block;width:auto;">
                                    <asp:LinkButton ID="btn_LocXemTatCa" OnClick="btn_LocXemTatCa_Click" runat="server" Text="<button class='btn btn-circle btn-inverse  show-tooltip' data-original-title='Xem tất cả đoàn viên bị xóa'><i class='icon-home'></i></button> Tất cả đoàn viên" ForeColor="#444444"></asp:LinkButton>&nbsp; &nbsp;
                                    <button class='btn btn-circle btn-success show-tooltip' data-original-title='Tin tức'><i class='icon-file-text-alt'></i></button>&nbsp;<asp:LinkButton ID="linkDoanVien" runat="server" ForeColor="#15b74e" OnClick="linkDoanVien_Click">Tin tức</asp:LinkButton>&nbsp;&nbsp;
                                    <button class='btn btn-circle  btn-primary show-tooltip' data-original-title='Thông báo'><i class= 'icon-envelope-alt'></i></button>&nbsp;<asp:LinkButton ID="linkDoanVienTruongThanh" runat="server" ForeColor="#0090ff" OnClick="linkDoanVienTruongThanh_Click">Thông báo</asp:LinkButton>&nbsp;&nbsp;
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
<%--        </ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>

